package game;


import java.awt.Point;

public class Coordenadas {

	public static Point getPosicion2D(int x, int y) {
		return new Point(x / 2 + 55, y * 3 / 2 + 200);
	}

	public static Point getPosicion3D(int x, int y) {
		float fx = 1.3f + (y / 100.0f);
		int xD = (int) (405 + x * fx);
		int yD = y + 265;
		return new Point(xD, yD);
	}

	public static int getDimension3D(int y, int dimension) {
		double f = ((y + 100.0) / 200) * 0.4 + 0.6;
		return (int) (dimension * f);
	}
}
